import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
import Config from "./config";
import http from "./api/index";

import { VueAxios } from "./utils/request";
import bootstrap from "./core/bootstrap";
import "./core/lazy_use";
import "./permission"; // permission control
import "./utils/filter"; // global filter
import "./components/global.less";
import { Dialog } from "@/components";

Vue.config.productionTip = false;
Vue.prototype.$config = Config;
Vue.prototype.$http = http;

// mount axios Vue.$http and this.$http
Vue.use(VueAxios);
Vue.use(Dialog);

new Vue({
  router,
  store,
  created: bootstrap,
  render: h => h(App)
}).$mount("#app");
